<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>检查修改accept</title>
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script>
</head>
<body>
<button onclick="test()">test</button>
<script>
    function test()
    {
        $.ajax({
            url:"/homework/user",
            headers: {
                Accept: "application/json; charset=utf-8"
            },
            type: "get",
            success: function (data) {
                console.log(data);
            }
        });
    }
</script>
</body>
</html>